﻿<%@ Page Title="" Language="C#" MasterPageFile="~/masterpage-trangcon.Master" AutoEventWireup="true" CodeBehind="Khuyen-Mai.aspx.cs" Inherits="Hyunhdai_Saigon_Project.Khuyen_Mai" %>
<%@ Register src="uc/uc-timkiem.ascx" tagname="uc" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<%--<asp:Content ID="Content2" ContentPlaceHolderID="menutrangcon" runat="server">
 <ul id="topnav">
    <li><a href="Lien-He.aspx">Liên Hệ </a></li>
    <li><a href="Khuyen-Mai.aspx">Khuyến Mãi</a></li>
        <li><a href="Meo-Vat.aspx">Mẹo Vặt</a></li>
        <li><a href="San-Pham.aspx">Hãng Xe </a><span style="z-index: 100"><a href="SanPham-Huyndai.aspx">
            Hyunhdai</a> <a href="SanPham-Isuzu.aspx">Isuzu</a> <a href="SanPham-Volkswagen.aspx">
                Volkswagen</a> </span></li>
        <li><a href="Thong-Tin.aspx">Thông Tin </a></li>
        <li><a href="Default.aspx" style="color: Yellow; font-weight: bold">Trang Chủ </a>
        </li>
    </ul>
</asp:Content>--%>
<asp:Content ID="Content3" ContentPlaceHolderID="timkiemxe" runat="server">
    <uc1:uc ID="uc1" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="maincontent" runat="server">
   <%--ngày tháng tại đây--%>
    <div class="sanpham-noidung">
        <asp:DataList ID="dlCountry" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
            <ItemTemplate>
                <asp:Label ID="lblID" runat="server" Text='<%# Eval("id") %>' Visible="False"></asp:Label>
                <div id="mv-img-left" class="img">
                    <asp:Image ID="Image1" runat="server" Width="150px" Height="150px" 
                        ImageUrl='<%# Eval("img") %>' />
                </div>
                <div id="mv-content-right">
                    <div class="title">
                        <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                    </div>
                    <div class="intro">
                       Ngày viết bài: <asp:Label ID="Label1" runat="server" Text='<%# Eval("date") %>'></asp:Label><br /> <br />
                        <asp:Label ID="lblIntro" runat="server" Text='<%# Eval("introtext") %>'></asp:Label>
                    </div>
                    <br />
                    <div class="showmore">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# createURLFromID((""+DataBinder.Eval (Container.DataItem, "id"))) %>'>Xem Thêm</asp:HyperLink>
                    </div>
                </div>
                <div class="clr">
                </div>
                <div style="border-top-color: Blue; border-top-width: 1px; border-top-style: dashed">
                </div>
            </ItemTemplate>
        </asp:DataList>
        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" OnItemDataBound="dlPaging_ItemDataBound"
            RepeatDirection="Horizontal" CssClass="dlpagging">
            <ItemTemplate>
                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                    CommandName="lnkbtnPaging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div class="sp-footer">
        <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"
            Width="50px">
            <asp:ListItem Value="6"></asp:ListItem>
            <asp:ListItem Value="12"></asp:ListItem>
            <asp:ListItem Value="18"></asp:ListItem>
            <asp:ListItem Value="24"></asp:ListItem>
        </asp:DropDownList>
        <asp:LinkButton ID="lnkbtnPrevious" runat="server" OnClick="lnkbtnPrevious_Click">Trang Trước</asp:LinkButton>
        <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click">Trang Sau</asp:LinkButton>
    </div>
</asp:Content>
